package com.appkubes.mall.restful.application.plugin.rent.service;

import com.alibaba.fastjson.JSONObject;
import com.appkubes.mall.core.entity.MallOrder;
import com.appkubes.mall.restful.application.order.rent.entity.vo.RentInfoVO;
import com.appkubes.mall.restful.application.wx.model.CreditModel;

import java.io.IOException;

public interface PluginRentService {

    JSONObject getOrderState(String orderKey) throws Exception;

    JSONObject shipOrder(String orderKey, String userKey, Integer isPayFirst) throws RuntimeException;

    JSONObject addZuLinOrder(MallOrder order, RentInfoVO rentInfoVO, String goodses) throws Exception;

    JSONObject cancelZuLinOrder(CreditModel creditModel) throws Exception;

    JSONObject paySucOrder(String orderKey) throws Exception;

    JSONObject queryRentOrder(String orderKey) throws IOException,RuntimeException;
}
